/**
 * 系统异常基类
 * Description: 系统异常基类
 * Copyright: Copyright (c) 2008
 * Company:联动优势
 * @author 高献华
 * @version 1.0
 * @date Aug 30, 2008
 */
package com.umfwechat.common.exception;

import java.util.HashMap;
import java.util.Map;

public class BaseException  extends Exception { 
    
    private static final long serialVersionUID = 6035941959819753938L;

	public String code;

	public String message; 
	
	private Map<String,Object>infomation = new HashMap<String,Object>();
 
	public BaseException(String message) {
		super(message);
		this.message = message; 
	}
	
	public BaseException(String code, String message) {
		super(message);
		this.code = code;
		this.message = message; 
	}
	
	public BaseException(String code, String message, Throwable e) {
		super(message,e);
		this.code = code;
		this.message = message; 
	}
	
	public BaseException(String code, Throwable e) {
		super(e);
		this.code = code;
	}
	
	public BaseException(String code, Map<String,Object>infomation) {
		this.code = code;
		this.infomation = infomation; 
	}

	public String getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

	public Map<String, Object> getInfomation() {
		return infomation;
	} 
	
	@Override
    public Throwable fillInStackTrace() {
		
        return this;
    }
}

